//
//  RESTClient.h
//  doubanFun
//
//  Created by bing on 16/3/22.
//  Copyright © 2016年 bing. All rights reserved.
//  网络访问层

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSInteger, METHOD) {
    GET    = 1,
    POST   = 2,
    PATCH  = 3,
    DELETE = 4,
    HEAD   = 5,
};

@interface RESTClient : NSObject

+ (instancetype)sharedClient;

- (void)method:(METHOD)method urlString:(NSString *)urlString parameters:(id)parameters
       success:(void (^)(id responseObject))success failure:(void (^)(NSError *error))failure;
@end
